<template>
	<scroll-view scroll-y class="content" @scroll="scroll">
	   scroll(e){
	    // console.log(e.detail)
	    this.topY=e.detail.scrollTop
	   },
	   touch(e){
	       e=this.$api.touchY(e,this.topY)
	       var idx=e.target.dataset.idx
	       if(idx=='canvasColumn'&&canvasColumn) this.$api.start(e,canvasColumn);
	       if(idx=='canvasColumn1'&&canvasColumn1) this.$api.start(e,canvasColumn1);
	       if(idx=='canvasPie'&&canvasPie) this.$api.ctip(e,canvasPie)
	      }
		/*----------------------
		 * func: 改变y坐标数值
		 * e-事件
		 * t-y轴顶部坐标值
		 -------------------------*/
		 touchY(e,t){
		  var ty=e.changedTouches?e.changedTouches[0].y:e.mp.changedTouches[0].y
		  if (e.changedTouches) {
		    e.changedTouches[0].y=(ty<0)?(ty+t):ty;
		  } else {
		    e.mp.changedTouches[0].y=(ty<0)?(ty+t):ty;
		  }
		  return e
		 },  
</template>

<script>
</script>

<style>
</style>
